package ru.padre386.geo_utils.data_loaders.gpx.domain;

import ru.padre386.geo_utils.data_loaders.common.IGeoTrack;
import ru.padre386.geo_utils.data_loaders.common.ITrackContainer;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: indrdb
 * Date: 04.02.2011
 * Time: 14:26:10
 */
public class GpxFile implements ITrackContainer {
    List<IGeoTrack> tracks;

    public void addTrack(GpxTrack track) {
        if (tracks == null) {
            tracks = new ArrayList<IGeoTrack>();
        }
        tracks.add(track);
    }


    @Override
    public List<IGeoTrack> geoTracks() {
        return tracks;
    }
}
